<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		//取名字程序,1.小明，2.碧石，3.大常，4.尚飞
		var a=Math.random()*4+1;
		
		var b=Math.floor(a);
		
		var c=prompt("请输入姓氏");
		switch(b){
			case 1:
				document.write(c+"小明");
			break;
			case 2:
				document.write(c+"碧石");
			break;
			case 3:
				document.write(c+"大常");
			break;
			case 4:
				document.write(c+"尚飞");
			break;
		}

	</script>
</html>